
public class SwitchStatementWithStringLiterals {

	/**
	 * Problem Statement:
	 * 		assume that your enters color "RED" or "BLUE" or "GREEN". 
	 * 		if its GREEN : print "1. GREEN", if its BLUE: print "2. BLUE", if its RED: "3. RED"
	 * 		Use the stitch with string literals
	 * 
	 * Note:
	 * 		in switch case, string literals (string constants) should be provided
	 */
	
	public static void main(String []args) {
		
		String color = "RED";
		
		switch(color) {
		case "GREEN":
			System.out.print("1. GREEN");
			break;
		case "BLUE":
			System.out.print("2. BLUE");
			break;
		case "RED":
			System.out.print("3. RED");
			break;
		default:
			System.out.println("\nInvalid option");
		}
		
		System.out.println("Thanks for using, switch with string literal statement");
		
	}
}
